﻿@model IEnumerable<WI.CandidateManager.Common.Data.Entities.Test>

@{
    ViewBag.Title = @Resources.Common.CommonTasksCaption;
}

<h2>@Resources.Common.CommonTasksCaption</h2>

<p>@Html.ActionLink(@Resources.Common.CommonButtonCreateTest, "Create", "Tests", new { @class = "common-btn BlueColor" })</p>

<ul class="master-tab-wrap">
    <li>@Html.ActionLink(@Resources.Common.CommonTabMyTests, "List", "Tests")</li>
    <li class="master-tab-pushed">@Html.ActionLink(@Resources.Common.CommonTabAllTests, "AllList", "Tests")</li>
    <li>@Html.ActionLink("Pending List", "PendingList", "Tests")</li>
</ul>

<table class="bordered">
    <thead>
        <tr>
            <th>@Resources.Common.CommonButtonDetails</th>
            <th>Assign</th>
            <th>@Resources.Common.CommonColumnTaskName</th>
            <th>@Resources.Common.CommonColumnQuestions</th>
            <th>@Resources.Common.CommonColumnOwner</th>
        </tr>
    </thead>
    @foreach (var test in Model)
    {
        <tr>
            <td class="Center column-detail">@Html.ActionLink(@Resources.Common.CommonButtonDetails, "Detail", new { @TestId = test.Id }, new { @class = "common-btn BlueColor" })</td>
            <td class="Center column-detail">@Html.ActionLink("Assign", "Assign", new { @TestId = test.Id }, new { @class = "common-btn BlueColor" })</td>
            <td>@test.Name</td>
            <td>@test.QuestionBase.Count</td>
            <td>@test.Owner.ShortName</td>
        </tr>        
    }
</table>
